<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 添加分类 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/application/Public/Admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/application/Public/Admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="catelist.html">商品分类</a></span>
<span class="action-span1"><a href="#">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加分类 </span>
<div style="clear:both"></div>
</h1>

<div class="main-div">  
  <?php if(is_array($value)): foreach($value as $key=>$volo): ?><form action="/application/index.php/Admin/Cate/cateedit/cat_id/<?php echo ($volo["cat_id"]); ?>" method="post" name="theForm" enctype="multipart/form-data">
  <table width="100%" id="general-table">
      <tr>
        <td class="label">分类名称:</td>
        <td>
          <input type='text' name='cat_name' maxlength="20" value='<?php echo ($volo["cat_name"]); ?>' size='27' /> <font color="red">*</font>
        </td>
      </tr>
      <tr>
        <td class="label">上级分类:</td>
        <td>
          <select name="parent_id">
            <?php if(is_array($vl)): foreach($vl as $key=>$vo2): ?><option value="<?php echo ($vo2[cat_id]); ?>" ><?php echo (str_repeat("&nbsp;&nbsp;&nbsp;",$vo2[evl])); echo ($vo2["cat_name"]); ?></option><?php endforeach; endif; ?>  
          </select>
        </td>
      </tr>

      <tr id="measure_unit">
        <td class="label">数量单位:</td>
        <td>
          <input type="text" name='measure_unit' value='<?php echo ($volo["measure_unit"]); ?>' size="12" />
        </td>
      </tr>
      <tr>
        <td class="label">排序:</td>
        <td>
          <input type="text" name='sort_order'  value="<?php echo ($volo["measure_unit"]); ?>" size="15" />
        </td>
      </tr>

      <tr>
        <td class="label">是否显示:</td>
        <td>
          <?php if($volo["is_show"] == 1): ?><input type="radio" name="is_show" value="1"  checked="true"/> 是          
          <input type="radio" name="is_show" value="0"  /> 否 
            <?php else: ?> 
          <input type="radio" name="is_show" value="1"  /> 是          
          <input type="radio" name="is_show" value="0"  checked="true"/> 否<?php endif; ?>   
        </td>
      </tr>
      <tr>
        <td class="label">是否显示在导航栏:</td>
        <td>
        <?php if($volo["show_in_nav"] == 1): ?><input type="radio" name="show_in_nav" value="1" checked="true"/> 是          
          <input type="radio" name="show_in_nav" value="0"   /> 否 
          <?php else: ?>
          <input type="radio" name="show_in_nav" value="1" /> 是          
          <input type="radio" name="show_in_nav" value="0"  checked="true" /> 否<?php endif; ?>  
        </td>
      </tr>
      <tr>
        <td class="label">设置为首页推荐:</td>
        <td>
          <input type="checkbox" name="cat_recommend[]" value="1" <?php echo ($volo['cat_recommend'][0] == 1?'checked':''); ?> /> 精品      
          <input type="checkbox" name="cat_recommend[]" value="2" <?php echo ($volo['cat_recommend'][0] == 2?'checked':''); ?> <?php echo ($volo['cat_recommend'][1] == 2?'checked':''); ?>/> 最新          
          <input type="checkbox" name="cat_recommend[]" value="3" <?php echo ($volo['cat_recommend'][0] == 3?'checked':''); ?> <?php echo ($volo['cat_recommend'][1] == 3?'checked':''); ?> <?php echo ($volo['cat_recommend'][2] == 3?'checked':''); ?>  /> 热门      
        </td>
      </tr>
      </tr>
      
      <tr>
        <td class="label">关键字:</td>
        <td><input type="text" name="keywords" value='<?php echo ($volo["keywords"]); ?>' size="50">
        </td>
      </tr>

      <tr>
        <td class="label">分类描述:</td>
        <td>
          <textarea name='cat_desc' rows="6" cols="48"><?php echo ($volo["cat_desc"]); ?></textarea>
        </td>
      </tr>
      </table>
      <div class="button-div">
        <input type="submit" value=" 确定 " />
        <input type="reset" value=" 重置 " />
      </div>
    <input type="hidden" name="act" value="insert" />
    <input type="hidden" name="old_cat_name" value="" />
    <input type="hidden" name="cat_id" value="" />
  </form><?php endforeach; endif; ?>
</div>

<div id="footer">
共执行 3 个查询，用时 0.021687 秒，Gzip 已禁用，内存占用 2.081 MB<br />
版权所有 &copy; 2005-2010 上海商派网络科技有限公司，并保留所有权利。</div>

</body>
</html>